/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import service.impl.ReporteServiceImpl;
import entity.Reporte;

@Controller
public class ReporteController {
    
    private ReporteServiceImpl ReporteServiceImpl;

    public void setReporteServiceImpl(ReporteServiceImpl ReporteServiceImpl) {
        this.ReporteServiceImpl = ReporteServiceImpl;
    }    

     @RequestMapping(params="accion=qry2")
    public ModelAndView Listar2(){
        List<Reporte> list = ReporteServiceImpl.ReporteEfectividad();
        ModelAndView mav = new ModelAndView("ReporteEfectividad");
        mav.addObject("list",list);
        Reporte Reporte = new Reporte();
        mav.addObject("Reporte",Reporte);
        return mav;
    }  
}
